package bean;

import annotation.Id;
import annotation.Table;

@Table(name = "prescription")
public class Prescription extends RmiBean {

	@Id
	private Integer id;
	private Integer idOrdonnance;
	private Integer idMedicament;
	private String posologie;

	public Prescription() {
		this.idOrdonnance = null;
		this.idMedicament = null;
		this.posologie = null;
	}

	public Integer getIdOrdonnance() {
		return idOrdonnance;
	}

	public void setIdOrdonnance(Integer idOrdonnance) {
		this.idOrdonnance = idOrdonnance;
	}

	public Integer getIdMedicament() {
		return idMedicament;
	}

	public void setIdMedicament(Integer idMedicament) {
		this.idMedicament = idMedicament;
	}

	public String getPosologie() {
		return posologie;
	}

	public void setPosologie(String posologie) {
		this.posologie = posologie;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public String toString() {
		return "Prescription [id=" + id + ", idOrdonnance=" + idOrdonnance
				+ ", idMedicament=" + idMedicament + ", posologie=" + posologie
				+ "]";
	}
	
}
